package cn.aylog.service.impl;

import cn.aylog.service.IUserService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class UserServiceImpl implements IUserService {

    Logger LOG = LoggerFactory.getLogger(UserServiceImpl.class);

    @Override
    public void remove(Integer id) {
        System.out.println("UserServiceImpl--remove...");
    }

    @Transactional
    @Override
    public String getUser(Integer id) {
        LOG.info("getUser -> id:{}", id);
        System.out.println("UserServiceImpl--getUser...");
//        int i = 1/0;
        return id.toString();
    }
}
